<template>
	<view :class="[set.type == 'none' ? '' : set.type == 'top' ? 'officialTop' : 'officialBottom']">
		<!-- uni-app未封装，但可直接使用微信原生的official-account组件-->
		<!-- #ifdef MP-WEIXIN -->
		<view>
			<official-account></official-account>
		</view>
		<!-- #endif -->
		<!-- :style="{height}" -->
		<!-- <view class="none" v-if="set.type != 'none'"></view> -->
	</view>
</template>

<script>
	export default {
		name: "gongzhonghao",
		data() {
			return {
				height: ''
			};
		},
		props: {
			set: {
				type: Object,
				default () {
					return {
						type: '',
					}
				}
			}
		},
		mounted: function() {
			// let h = document.getElementsByClassName("officialBox")
			// console.log('h ==>', h);
			// this.height = $('.officialBox').height() + 'px'
		}
	}
</script>

<style scoped>
	.officialTop {
		width: 100%;
		position: absolute;
		top: 50px;
		right: 0;
	}

	.officialBottom {
		width: 100%;
		position: absolute;
		bottom: 50px;
		right: 0;
	}
</style>